<fieldset>
    <legend>Add user</legend>
    <?php echo form_open('users/add_user'); ?>
        <ul>
            <li><p>
                <?php echo form_error('firstname');?>
                <label for="firstname">Firstname:</label>
                <input type="text" id="firstname" name="firstname" value="<?php echo set_value('firstname'); ?>"/>
            </p></li>
            <li><p>
                <?php echo form_error('surname');?>
                <label for="surname">Surname:</label>
                <input type="text" id="surname" name="surname" value="<?php echo set_value('surname'); ?>"/>
            </p></li>
            <li><p>
                <?php echo form_error('password');?>
                <label for="password">Password:</label>
                <input type="password" id="password" name="password" />
            </p></li>
            <li><p>
                <?php echo form_error('passconf');?>
                <label for="passconf">Password confirmation:</label>
                <input type="password" id="passconf" name="passconf" />
            </p></li>
            <li><p>
                <?php echo form_error('user_level');?>
                <label for="user_level">User level:</label>
                <select id="user_level" name="user_level">
                    <option value="REGULAR_USER" <?php echo set_select('user_level', 'REGULAR_USER'); ?>>Regular user</option>
                    <option value="PROCESS_MANAGER" <?php echo set_select('user_level', 'PROCESS_MANAGER'); ?>>Process manager</option>
                    <option value="USER_MANAGER" <?php echo set_select('user_level', 'USER_MANAGER'); ?>>User manager</option>
                    <option value="ADMIN" <?php echo set_select('user_level', 'ADMIN'); ?>>Admin</option>
                </select>
            </p></li>
            <li><p>
                <input type="submit" value="Add user" id="submit" name="submit" />
                <input type="button" value="cancel" onclick="javascript:document.location = '<?php echo site_url('home/main'); ?>'" />
            </p></li>
        </ul>
    <?php echo form_close(); ?>
</fieldset>